<div ng-if="plotlyOptions.globalSeriesType != 'custom'">
  <plotly-chart options="plotlyOptions" series="chartSeries"></plotly-chart>
</div>
<div ng-if="plotlyOptions.globalSeriesType == 'custom'">
  <custom-plotly-chart series="chartSeries" options="plotlyOptions"></custom-plotly-chart>
</div>
